﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace tpsmi1002
{
    public class StockMarket
    {
        private int idStockMarket;
        private string symbol;
        private string marketName;
        private Dictionary<int, Stock> listStock;

        public StockMarket()
        { }

        public StockMarket(int _id, string _symbol, string _marketName)
        {            this.idStockMarket = _id;
            this.symbol = _symbol;
            this.marketName = _marketName;

            listStock = new Dictionary<int, Stock>();
        }

        public void addStock(Stock _stock)
        {
            listStock.Add(_stock.IdStock, _stock);
        }

        public string MarketName
        {
            get { return this.marketName; }
        }
    }
}
